{% extends "base.html" %}
{% block content %}
<script>
function like(id)
{
    $.post("/circle/like/",{tid:id},function(result){
        alert(result)
        window.location.reload()
    });
}
</script>
<div class="row">
    <div class="col-sm-12 col-md-3"></div>
    <div class="col-sm-12 col-md-6">
        {% for item in result %}
                <div class="list-group">
                    <div class="modal-content">
                       <div class="modal-header">
                           <h4 class="modal-title">{{ item.1 }}</h4>     
                       </div>
                        <div class="modal-body">
                            <h3>{{ item.2 }}</h3>
                            <small>{{ item.3 }}</small>
                        </div>
                        <div class="modal-footer">
                            {% for feed in item.4 %}
                            <div class="list-group">
                                <text class="list-group-item text-left">{{ feed.0 }} : {{ feed.1 }}</text>
                            </div>
                            {% endfor %}
                            <text style="word-wrap:break-word;word-break:break-all;">{{ item.5 }}</text>
                            <button type="button" class="btn btn-primary" onclick="like({{ item.0 }})">点赞({{ item.6 }})</button>
                        </div>
                    </div>
                </div>
         {% endfor %}
    </div>
    <div class="col-sm-12 col-md-3"></div>
</div>
{% endblock %}
